<template>
    <van-cell-group style="background: #000;" inset>
        <van-field v-model="value" placeholder="请输入搜索内容" />
    </van-cell-group>
    <div>
        <h3>找电影</h3>
        <van-card v-for="i in data"   :desc="i.goods_name" :title="i.goods_name"
            :thumb="i.goods_big_logo"  @click="tiao"/>
    </div>
</template>

<script setup>
import {ref} from 'vue'
import {liebiao} from '@/api/api'
import{useRouter} from 'vue-router'
let router=new useRouter()
let data=ref([])
liebiao().then(res=>{
    console.log('列表信息',res)
    data.value=res.data.message.goods
})
let tiao=()=>{
    router.push('/detail')
}
</script>

<style lang="scss" scoped></style>